helloApp.config(function($stateProvider, $urlRouterProvider) {

    $stateProvider
        .state('root', {
            abstract: true,
            templateUrl: "/app/view/index.html",
            controller: "MainCtrl"
        });
});

helloApp.controller('MainCtrl', function ($scope, $http, $state, $q, $rootScope, Auth, LangService) {

    $scope.changeLang = function (keyLang) {
        LangService.changeLang(keyLang);
    };

    $scope.getActiveClass = function (state) {
        if (state === $state.current.name)
            return "active";
        return "";
    };

    $scope.utils = {};

    $scope.utils.uploadFolder = "/upload";
});